package com.aaa.auth.feign;

import com.aaa.common.entity.AclPermission;
import com.aaa.common.entity.AclUser;
import com.aaa.common.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author ：Mickey
 * @date ：Created in 2022/12/1 19:18
 * @description：
 * @modified By：
 * @version:
 */
@FeignClient(value = "education-system")
public interface SystemFeign {

    //根据账户查询用户信息
    @RequestMapping("/system/user/getByName/{username}")
    public Result<AclUser> getByName(@PathVariable String username);


    //根据用户id查询对应权限
    @RequestMapping("/system/permission/getByUserid/{userid}")
    public Result<List<AclPermission>> getByUserid(@PathVariable Long userid);


}
